import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listManagement(query) {
    return request({
        url: '/website/management/list',
        method: 'get',
        params: query
    })
}

export function listManagementOne(query) {
    return request({
        url: '/website/management/oneList',
        method: 'get',
        params: query
    })
}

export function listManagementTwo(query) {
    return request({
        url: '/website/management/twoList',
        method: 'get',
        params: query
    })
}

export function listManagementThree(query) {
    return request({
        url: '/website/management/threeList',
        method: 'get',
        params: query
    })
}

export function listManagementAll(query) {
    return request({
        url: '/website/management/allList',
        method: 'get',
        params: query
    })
}

// 查询【请填写功能名称】详细
export function getManagement(id) {
    return request({
        url: '/website/management/' + id,
        method: 'get'
    })
}

// 新增【请填写功能名称】
export function addManagement(data) {
    return request({
        url: '/website/management',
        method: 'post',
        data: data
    })
}

// 修改【请填写功能名称】
export function updateManagement(data) {
    return request({
        url: '/website/management',
        method: 'put',
        data: data
    })
}

// 删除【请填写功能名称】
export function delManagement(id) {
    return request({
        url: '/website/management/' + id,
        method: 'delete'
    })
}
